/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homedatasender;

/**
 *
 * @author tadas
 */
public class NumberFilter {

    public NumberFilter(java.awt.event.KeyEvent evt) {
        char c = evt.getKeyChar();
        String text = Character.toString(c);
        if (!text.matches("[0-9]+")) {
            evt.consume();
        }
    }
}
